<!-- 测试组件：演示组件透传功能 -->
<script setup>
  const props = defineProps({
    age: Number,
    sex: String,
  })
  console.log('test-demo-02 props: ', props)

  defineEmits(['refresh', 'scrolltolower'])
</script>

<template>
  <view>age: {{ age }}</view>
  <view>sex: {{ sex }}</view>
  <view>
    <button @click="$emit('refresh', 123)">触发刷新</button>
    <button @click="$emit('scrolltolower', 456)">触发触底</button>
  </view>
</template>

<style></style>
